<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code_date" class="form-control" type="text" value="{$code}" name="row[code]" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[code_date]" type="text" value="{:date('Y-m-d')}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Book_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-book_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[book_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warehouse_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[warehouse_id]',$warehouseArr,2,['id'=>'c-warehouse_id'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[type]',$typeArr,[],['id' => 'type'])}
        </div>
    </div>
    <div class="form-group hidden" data-favisible="type=2">
        <label class="control-label col-xs-12 col-sm-2">{:__('Inv_number_start')}:</label>
        <div class="col-xs-1 col-sm-7">
            <input id="inv_number_start" class="form-control" name="row[inv_number_start]" type="text" readonly>
        </div>
        <a href="javascript:;" onClick="chooseGoods('inv_number_start')" class="col-sm-0 btn btn-success" title="打开选择" ><i class="fa fa-plus"></i> 选择</a>
    </div>
    <div class="form-group hidden" data-favisible="type=2">
        <label class="control-label col-xs-12 col-sm-2">{:__('Inv_number_end')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="inv_number_end" class="form-control" name="row[inv_number_end]" type="text" readonly>
        </div>
        <a href="javascript:;" onClick="chooseGoods('inv_number_end')"  class="col-sm-0 btn btn-success" title="打开选择" ><i class="fa fa-plus"></i> 选择</a>
    </div>
    
    <div class="form-group hidden" data-favisible="type=3">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shelves_id')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="shelves_name" class="form-control h2" data-role='tagsinput' type="text" data-tagsinput-options='{"trimValue":true,"delimiter":"|"}'>
            <input id="shelves_id" class="form-control hidden"  type="text" name='row[shelves_ids]'>
        </div>
        <a href="javascript:;" onClick="selectshelves()"  class="col-sm-0 btn btn-success" title="打开选择" ><i class="fa fa-plus"></i> 选择</a>
    </div>
    <div class="form-group hidden" data-favisible="type=3">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shelves_des')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control"  type="text" name='row[shelves_des]'>
        </div>
    </div>
    <div class="form-group hidden" data-favisible="type=4">
        <label class="control-label col-xs-12 col-sm-2">{:__('Inv_class')}:</label>
        <div class="col-xs-12 col-sm-8">
        	<input id="c-inv_class1_id" data-source="information/inventoryclass/getData?level=1" class="form-control selectpage" name="row[inv_class1_id]"  type="text" data-field="cInvCName" data-primary-key="id" value="" data-pagination="true" data-multiple="true"  data-format-item="{cInvCCode} - {cInvCName}"  >
        </div>
    </div>
    
    <div class="form-group hidden" data-favisible="type=4">
    	<label class="control-label col-xs-12 col-sm-2">{:__('')}</label>
    	<div class="col-xs-12 col-sm-8">
        	<input id="c-inv_class2_id" data-source="information/inventoryclass/getData?level=2" class="form-control selectpage" name="row[inv_class2_id]"  type="text" data-field="cInvCName" data-primary-key="id" value="" data-pagination="true" data-multiple="true" data-format-item="{cInvCCode} - {cInvCName}"  >
        </div>
    </div>
    
    <div class="form-group hidden" data-favisible="type=4">
    	<label class="control-label col-xs-12 col-sm-2">{:__('')}</label>
        <div class="col-xs-12 col-sm-8">
        	<input id="c-inv_class3_id" data-source="information/inventoryclass/getData?level=3" class="form-control selectpage" name="row[inv_class3_id]"  type="text" data-field="cInvCName" data-primary-key="id" value="" data-pagination="true" data-multiple="true" data-format-item="{cInvCCode} - {cInvCName}"  >
        </div>
    </div>
    
    <div class="form-group">
    	<label class="control-label col-xs-12 col-sm-2">{:__('Pda_flag')}</label>
        <div class="col-xs-12 col-sm-8">
        	{:build_select('row[pda][]',$pdaFlagArr,$selectedPdaFlagArr,['class' => 'form-control selectpicker', 'multiple' =>'','data-actions-box'=>'true' ])}
        </div>
    </div>
    
    
   <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[remark]" type="text">
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<style>
.label-info {
    background-color: #000;
}
</style>
